<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>基本的state</title>
    <script src="https://unpkg.com/vuex"></script>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
    <script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.js"></script>
</head>
<body>

<div id="app">
    <tao he=6></tao>
</div>

<script>
    <!--全局组件没有s-->
    Vue.component("tao",{
            props:{
              he:Number
            },
            template:"<div >{{he+6}}</div>"
        }
    );

    var v = new Vue({
        el: '#app',
    });

</script>

</body>
</html>